home *** CD-ROM | disk | FTP | other *** search
-
- CONTROL-Q
-
-
-
- By: Bennett Cookson, Jr.
-
-
- Although Commodore computers have
-
- one of the best screen editors
-
- around, the editor's quote mode can
-
- sometimes be bothersome. Sure,
-
- you've experienced it. You're typing
-
- along, particularly typing in strings
-
- surrounded by quotes, when all of a
-
- sudden your cursor controls produce
-
- unwanted reversed characters. Then,
-
- you have to hit RETURN to get out of
-
- quote mode, go back up to the line
-
- and fix it. Well, Control-Q gives
-
- you complete control of quote mode.
-
- When you run the program, a machine
-
- language routine is loaded and run.
-
- This routine is interrupt-driven,
-
- thus it is executed 60 times per
-
- second. The ML routine pokes 212,0
-
- and pokes 216,0 to clear quote mode
-
- and insert mode. Also, the routine
-
- checks to see if CTRL/Q is being
-
- pressed. If so, it then toggles quote
-
- mode, turning it on or off.
-
- When the program begins, you will
-
- be prompted with 'LOCK? (STOP/RESTORE
-
- WON'T DESTROY IT) y or n.Y If you
-
- answer 'Y' then a RUN/STOP-RESTORE
-
- will not remove your Ctrl-Q routine.
-
- This is accomplished by changing the
-
- vectors at 655-656 to point to the
-
- Control-Q routine, every time a BASIC
-
- warm-start is performed. This way
-
- Control-Q will always be there when
-
- you need it.
-
- As is, the machine language program
-
- is stored beginning at 679 ($02A7),
-
- using only 64 bytes of memory. To
-
- change the starting address, change
-
- the assignment of the variable SA, in
-
- line 200 of the BASIC loader, to the
-
- desired address.
-
-
- ------
-
- This program is copyrighted by
-
- Commodore Microcomputers magazine.
-
- All rights to it are reserved.
-
- LOADSTAR has relieved you from the
-
- burden of keying in this program.
-
- For more complete information about
-
- this program, refer to the February
-
- 1986 issue of Commodore
-
- Microcomputers.
-
- >Files used: CONTROL Q
- CONTROL-Q.MSG
-
- ---------< end of article >-----------
-
-